package com.hm.prc1;

public class Test {
    public static void main(String[] args) {
        //实现接口创建对象
        A a = new SubA();
        a.method();
        //内部类创建接口实现类对象
        B b = new B() {
            @Override
            public void getNum() {

            }
        };
        System.out.println(b.getClass());
    }
}
